package demo01;

/**
 * @author Gotcha
 * @date 2021/4/22
 * @describe 具体装饰角色
 */
public class FlyCar extends SuperCar{
    public FlyCar(Icar car) {
        super(car);
    }
    private void fly(){
        System.out.println("天上飞！");
    }

    @Override
    public void move() {
        super.move();
        //拓展功能,装饰
        fly();
    }
}
